Automattic\Jetpack\Search\Helper D

Total Complexity 149
Dependencies 4
Dependents 11
Total lines 926
Lines of code 480
Logical lines of code 260
Comment lines 338
Methods 34
Properties 0

Methods 34

Method Rating Maintainability Complexity Lines of code
generate_initial_javascript_state()
B
32 21 93
get_widget_tracks_value()
B
39 21 65
generate_widget_filter_name()
A
45 11 44
get_filters_from_widgets()
A
50 10 26
ensure_post_types_on_remove_url()
A
50 9 29
get_filter_properties_for_tracks()
S
55 5 20
get_widget_properties_for_tracks()
S
56 5 17
get_date_filter_type_name()
S
58 5 16
remove_active_from_post_type_buckets()
S
60 5 12
post_types_differ_query()
S
58 4 15
get_active_post_types()
S
64 4 9
is_valid_locale()
S
63 4 10
get_active_plugins()
S
62 3 11
get_search_url()
S
62 3 11
get_wpcom_site_id()
S
70 3 6
array_diff()
S
66 3 8
get_asset_version()
S
72 3 5
get_widgets_from_option()
S
67 3 7
add_query_arg()
S
67 3 7
should_rerun_search_in_customizer_preview()
S
77 3 3
add_post_types_to_url()
S
62 2 12
get_max_posts_per_page()
S
79 2 3
get_max_offset()
S
79 2 3
sanitize_checkbox_value()
S
78 2 3
print_instant_search_sidebar()
S
68 2 9
remove_query_arg()
S
74 2 4
post_types_differ_searchable()
S
66 2 8
is_active_widget()
S
78 1 3
build_widget_id()
S
78 1 3
are_filters_by_widget_disabled()
S
79 1 3
generate_post_type_customizer_id()
S
79 1 3
generate_post_type_customizer_ids()
S
70 1 6
sanitize_checkbox_value_for_js()
S
80 1 3
get_widget_option_name()
S
79 1 3